
<body class="body" ng-controller="shoppingCartPageCtrl">
<link rel="stylesheet" href="../css/shoppingCartPage.css" type="text/css"/>
<div  class="bodyHeader">
    <button   class="label publicStyle1" ng-click="jumpShoppingListPage()">Let's Go</button>
    <button   class="publicStyle1 publicStyle2" ng-click="jumpHomePage">主页</button>
    <button   class="publicStyle1 publicStyle2" ng-click="jumpShoppingListPage()">商品列表</button>
    <button   class="shoppingCart"><img src="../png/shoppingCart.png" class="img">购物车(<a ng-bind="showCartCount()" ng-model="cartCount">{{cartCount}}</a>)</button>
</div>
<div class="mainTable">
    <div class="titleDiv">购物清单</div>
    <table  class="table">
        <th class="th1">分类</th>
        <th class="th2" >名称</th>
        <th class="th2">单价（元）</th>
        <th class="th1">单位</th>
        <th class="th3">数量</th>
        <th>小计</th>
        <tr ng-repeat="itemInfo in cartList" ng-show="itemInfo.count>0">
            <td  class="td">{{itemInfo.classification}}</td>
            <td class="td">{{itemInfo.itemName}}</td>
            <td class="td">{{itemInfo.price}}</td>
            <td class="td">{{itemInfo.unit}}</td>
            <td><button class="buttonStyle buttonLess" ng-click="addButtonEvent(itemInfo,-1)">-</button><button disabled="false" class="buttonStyle itemCount">{{itemInfo.count}}</button><button
                    ng-click="addButtonEvent(itemInfo,1)"  class="buttonStyle buttonAdd">+</button></td>
            <td class="td subTotal">{{itemInfo.actuallyPaid+"元"}}<a ng-show="itemInfo.promotionCount>0">{{"(原价:"+itemInfo.costPrice+"元)"}}</a></td>
        </tr>
    </table>
    <p class="sumPrice">原价:<a  ng-bind="showActuallyPaid()" ng-model="actuallyPaid">{{actuallyPaid}}</a>元</p>
    <button class="payMoney" ng-click="jumpPaymentPage()">付款</button>
</div>
</body>
